package com.qyc.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

import lombok.Data;

/**
 * 动物信息表
 * @TableName manager_animal
 */
@TableName(value ="manager_animal")
//@Data
public class Animal implements Serializable {
    /**
     * 动物编号
     */
    @TableId
    private String aAnimalId;

    /**
     * 动物体重
     */
    private String aWeight;

    /**
     * 动物性别,雌性，雄性
     */
    private String aGender;

    /**
     * 健康状态,健康,生病
     */
    private String aHealthy;

    /**
     * 过程状态,养殖中，已检疫，已出栏，已屠宰，已入库，已销售
     */
    private String aStatus;

    /**
     * 疫苗接种状态未接种,已接种
     */
    private String aInoculate;

    /**
     * 录入时间
     */
    private Date aTime;

    /**
     * 批次外键
     */
    private String aBatchId;

    /**
     * 栏圈外键
     */
    private String aHurdlesId;

    public Animal() {
    }

    public Animal(String aAnimalId, String aWeight, String aGender, String aHealthy, String aStatus, String aInoculate, Date aTime, String aBatchId, String aHurdlesId) {
        this.aAnimalId = aAnimalId;
        this.aWeight = aWeight;
        this.aGender = aGender;
        this.aHealthy = aHealthy;
        this.aStatus = aStatus;
        this.aInoculate = aInoculate;
        this.aTime = aTime;
        this.aBatchId = aBatchId;
        this.aHurdlesId = aHurdlesId;
    }

    public String getaAnimalId() {
        return aAnimalId;
    }

    public void setaAnimalId(String aAnimalId) {
        this.aAnimalId = aAnimalId;
    }

    public String getaWeight() {
        return aWeight;
    }

    public void setaWeight(String aWeight) {
        this.aWeight = aWeight;
    }

    public String getaGender() {
        return aGender;
    }

    public void setaGender(String aGender) {
        this.aGender = aGender;
    }

    public String getaHealthy() {
        return aHealthy;
    }

    public void setaHealthy(String aHealthy) {
        this.aHealthy = aHealthy;
    }

    public String getaStatus() {
        return aStatus;
    }

    public void setaStatus(String aStatus) {
        this.aStatus = aStatus;
    }

    public String getaInoculate() {
        return aInoculate;
    }

    public void setaInoculate(String aInoculate) {
        this.aInoculate = aInoculate;
    }

    public Date getaTime() {
        return aTime;
    }

    public void setaTime(Date aTime) {
        this.aTime = aTime;
    }

    public String getaBatchId() {
        return aBatchId;
    }

    public void setaBatchId(String aBatchId) {
        this.aBatchId = aBatchId;
    }

    public String getaHurdlesId() {
        return aHurdlesId;
    }

    public void setaHurdlesId(String aHurdlesId) {
        this.aHurdlesId = aHurdlesId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Animal animal = (Animal) o;
        return Objects.equals(aAnimalId, animal.aAnimalId) && Objects.equals(aWeight, animal.aWeight) && Objects.equals(aGender, animal.aGender) && Objects.equals(aHealthy, animal.aHealthy) && Objects.equals(aStatus, animal.aStatus) && Objects.equals(aInoculate, animal.aInoculate) && Objects.equals(aTime, animal.aTime) && Objects.equals(aBatchId, animal.aBatchId) && Objects.equals(aHurdlesId, animal.aHurdlesId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(aAnimalId, aWeight, aGender, aHealthy, aStatus, aInoculate, aTime, aBatchId, aHurdlesId);
    }

    @Override
    public String toString() {
        return "Animal{" +
                "aAnimalId='" + aAnimalId + '\'' +
                ", aWeight='" + aWeight + '\'' +
                ", aGender='" + aGender + '\'' +
                ", aHealthy='" + aHealthy + '\'' +
                ", aStatus='" + aStatus + '\'' +
                ", aInoculate='" + aInoculate + '\'' +
                ", aTime=" + aTime +
                ", aBatchId='" + aBatchId + '\'' +
                ", aHurdlesId='" + aHurdlesId + '\'' +
                '}';
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}